/**
 * Created by dylan_Apple on 17/3/14.
 */

var express = require('express');
var router = express.Router();

var schedule = require('../../services/service.schedule.js');




router.get('/getSchedule', function (req, res, next) {

    schedule.getSchedule(req, res, function(result) {
        res.set('Content-Type', 'application/json');
        res.send(result);
    })

});

router.get('/getSellerActivity', function (req, res, next) {

    schedule.getSellerActivity(req, res, function(result) {
        res.set('Content-Type', 'application/json');
        res.send(result);
    })
});
router.get('/getTeamListByUid', function (req, res, next) {

    schedule.getTeamListByUid(req, res, function(result) {
        res.set('Content-Type', 'application/json');
        res.send(result);
    })

});

router.get('/getUserListByTeamId', function (req, res, next) {

    schedule.getUserListByTeamId(req, res, function(result) {
        res.set('Content-Type', 'application/json');
        res.send(result);
    })

});

router.post('/createUser', function (req, res, next) {

    schedule.createUser(req, res, function(result) {
        res.set('Content-Type', 'application/json');
        res.send(result);
    })

});



module.exports = router;

